#import "TonicLuminescenceController.h"
        
#import "TonicLuminescenceModel.h"
#import "TonicLuminescenceCell.h"
#import "Masonry.h"

@interface TonicLuminescenceController () <UITableViewDataSource, UITableViewDelegate>

@property (nonatomic, strong) UITableView *symphonyWondermentFractalTableView;
@property (nonatomic, strong) NSMutableArray *thriveXenonYearlingDatas;

@end

@implementation TonicLuminescenceController

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
}

- (void)viewDidLoad {
    [super viewDidLoad];

    [self lullabyUnderwaterInitui];
	[self flourishrequestData];
}


//: 懒加载数据模型数组
- (NSMutableArray *)thriveXenonYearlingDatas {
	if (!_thriveXenonYearlingDatas) {
		_thriveXenonYearlingDatas = [NSMutableArray array];
	}
	return _thriveXenonYearlingDatas;
}

//: 初始化页面UI
- (void)lullabyUnderwaterInitui {

	[self.view addSubview:self.symphonyWondermentFractalTableView];
	[self.symphonyWondermentFractalTableView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.leading.trailing.equalTo(self.view);
		make.top.equalTo(self.view);
		make.bottom.equalTo(self.view.mas_safeAreaLayoutGuideBottom);
	}];
}


- (UITableView *)figHandleTableView {
    if (!_symphonyWondermentFractalTableView) {
        _symphonyWondermentFractalTableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStylePlain];
        _symphonyWondermentFractalTableView.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight;
        _symphonyWondermentFractalTableView.estimatedRowHeight = 0;
        _symphonyWondermentFractalTableView.separatorStyle = UITableViewCellSeparatorStyleNone;
        _symphonyWondermentFractalTableView.contentInset = UIEdgeInsetsMake(16, 0, 16, 0);
        _symphonyWondermentFractalTableView.delegate = self;
        _symphonyWondermentFractalTableView.dataSource = self;
        _symphonyWondermentFractalTableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
        _symphonyWondermentFractalTableView.showsVerticalScrollIndicator = NO;
        _symphonyWondermentFractalTableView.showsHorizontalScrollIndicator = NO;
        _symphonyWondermentFractalTableView.backgroundColor = UIColor.clearColor;
    }
    return _symphonyWondermentFractalTableView;
}

//: 获取数据模型
- (void)flourishrequestData {
	
}

#pragma mark - UITableView DataSource 
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return self.thriveXenonYearlingDatas.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    TonicLuminescenceCell *volatileBlazeKaleidoscope = [tableView dequeueReusableCellWithIdentifier:NSStringFromClass([TonicLuminescenceCell class])];
    if (volatileBlazeKaleidoscope == nil) {
        volatileBlazeKaleidoscope = [[TonicLuminescenceCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:NSStringFromClass([TonicLuminescenceCell class])];
    }
    volatileBlazeKaleidoscope.selectionStyle = UITableViewCellSelectionStyleNone;
    
    return volatileBlazeKaleidoscope;
}


#pragma mark - UITableView Delegate
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    // cell tap action
}


@end
